/*
 * @Description: 酒店订单相关api
 * @Version: 2.0
 * @Autor: 许国辉
 * @Date: 2023-03-20 11:40:11
 * @LastEditors: 许国辉
 * @LastEditTime: 2023-09-08 14:18:13
 */
import { defHttp } from '/@/utils/http/axios';
import {
  HotelOrderStatisticsParams,
  HotelOrderStatisticsModel,
} from './model/hotelOrderStatisticsModel';
// import { getNewDate } from '/@/api/travelItinerary/getDateAPI';
enum Api {
  getHotelOrderStatistics = '/hotelOrderStatistics/getHotelOrderStatistics',
}
export function getHotelOrderStatisticsBussess(params: HotelOrderStatisticsParams) {
  params.travelType = 0;
  return defHttp.post<HotelOrderStatisticsModel>({
    url: Api.getHotelOrderStatistics,
    params,
    headers: {
      ignoreCancelToken: true,
    },
  });
}

export function getHotelOrderStatisticsPersonal(params: HotelOrderStatisticsParams) {
  params.travelType = 1;
  return defHttp.post<HotelOrderStatisticsModel>({
    url: Api.getHotelOrderStatistics,
    params,
    headers: {
      ignoreCancelToken: true,
    },
  });
}
